package com.video.video.domain;

import com.video.common.core.domain.BaseEntity;
import java.math.BigDecimal;
import com.video.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 充值记录对象 d_echarge_record
 *
 * @author ruoyi
 * @date 2022-09-27
 */
public class DEchargeRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private String id;

    /** 会员id */
    @Excel(name = "会员id")
    private String uid;

    /** 合伙人id */
    @Excel(name = "合伙人id")
    private String hid;

    /** 充值方式：1 平台 2 合伙人 */
    @Excel(name = "充值方式：1 平台 2 合伙人")
    private String echargeType;

    /** 支付渠道：1 支付宝 2 微信 3银行卡 4 现金 */
    @Excel(name = "支付渠道：1 支付宝 2 微信 3银行卡 4 现金")
    private String type;

    /** 充值账号 */
    @Excel(name = "充值账号")
    private String accountNumber;

    /** 当前会员余额金额（充值前） */
    @Excel(name = "当前会员余额金额", readConverterExp = "充=值前")
    private BigDecimal currentAmount;

    /** 充值金额 */
    @Excel(name = "充值金额")
    private BigDecimal amount;


    /***当前会员剩余的 赠送金额  充值前*/
    @Excel(name = "当前会员所赠送的金额的余额", readConverterExp = "充=值前")
    private BigDecimal currentGiveAmount;

    /** 此次充值所赠送的金额 */
    @Excel(name = "赠送金额")
    private BigDecimal giveAmount;


    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setUid(String uid)
    {
        this.uid = uid;
    }

    public String getUid()
    {
        return uid;
    }
    public void setHid(String hid)
    {
        this.hid = hid;
    }

    public String getHid()
    {
        return hid;
    }
    public void setEchargeType(String echargeType)
    {
        this.echargeType = echargeType;
    }

    public String getEchargeType()
    {
        return echargeType;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setAccountNumber(String accountNumber)
    {
        this.accountNumber = accountNumber;
    }

    public String getAccountNumber()
    {
        return accountNumber;
    }
    public void setCurrentAmount(BigDecimal currentAmount)
    {
        this.currentAmount = currentAmount;
    }

    public BigDecimal getCurrentAmount()
    {
        return currentAmount;
    }
    public void setAmount(BigDecimal amount)
    {
        this.amount = amount;
    }

    public BigDecimal getAmount()
    {
        return amount;
    }

    public BigDecimal getCurrentGiveAmount() {
        return currentGiveAmount;
    }

    public void setCurrentGiveAmount(BigDecimal currentGiveAmount) {
        this.currentGiveAmount = currentGiveAmount;
    }

    public BigDecimal getGiveAmount() {
        return giveAmount;
    }

    public void setGiveAmount(BigDecimal giveAmount) {
        this.giveAmount = giveAmount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("uid", getUid())
            .append("hid", getHid())
            .append("echargeType", getEchargeType())
            .append("type", getType())
            .append("accountNumber", getAccountNumber())
            .append("currentAmount", getCurrentAmount())
            .append("amount", getAmount())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
